View Issue Details

IDProjectCategoryView StatusLast Update
0001561K18X001.00 SKB SWANSWpublic2023-04-11 15:25
Reporter(ALTech) Sangmin Choi Assigned To(SW) Dean ChiangDue Date2022-11-28 09:33
PrioritynormalSeveritys4-minorReproducibilityalways
Status closedResolutionfixed 
Summary0001561: There is a kernel panic when I run the "screencap" command.
DescriptionThere is a kernel panic when I run the "screencap" command.
The command is "screencap -p /sdcard/screen.png".

Could you please check the attached dmesg?
Additional Informationhttps://jira.skbroadband.com/browse/BPM-12314
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) Wooshin Kang

Activities

(ALTech) Sangmin Choi

2022-11-24 08:42

developer  

kernel_panic.txt (13,243 bytes)   
BFX-UA300:/ # screencap -p /sdcard/screen.png
BFX-UA300:/ # dmesg
[56344.069657] ------------[ cut here ]------------
[56344.069775] WARNING: CPU: 2 PID: 32638 at /ssd4t/dean/swan_bmt/syna-release/linux_4_9_q/drivers/soc/berlin/modules/rogue/src/pvr_counting_timeline.c:190 pvr_counting_fence_timeline_force_complete+0x5c/0xd8 [pvrsrvkm]
[56344.069777] Modules linked in: hid_skbrm(O) gpio_keypad(O) snd_soc_tlv320adc310x(O) drv_leds_awin210xx(O) drv_leds_lp50xx(O) snd_soc_cx2081x(O) snd_soc_wa206829b(O) snd_soc_ad8xxxx(O) pvrsrvkm zsp vpu tsp amp_core cpm
[56344.069798]
[56344.069804] CPU: 2 PID: 32638 Comm: screencap Tainted: G           O    4.9.178 #1
[56344.069806] Hardware name: MARVELL BG5CT FFV BOARD (DT)
[56344.069810] task: 00000000b78c188d task.stack: 00000000fa7dd432
[56344.069870] PC is at pvr_counting_fence_timeline_force_complete+0x5c/0xd8 [pvrsrvkm]
[56344.069926] LR is at pvr_counting_fence_timeline_force_complete+0x28/0xd8 [pvrsrvkm]
[56344.069928] pc : [<ffffff8000a5e678>] lr : [<ffffff8000a5e644>] pstate: 204001c5
[56344.069929] sp : ffffffc0b5fdfcf0
[56344.069931] x29: ffffffc0b5fdfd30 x28: ffffffc033855280
[56344.069935] x27: ffffff80089f5000 x26: 00000000000000f8
[56344.069938] x25: 0000000000000008 x24: ffffffc0ba329280
[56344.069942] x23: ffffffc0ba329280 x22: ffffffc0ac7a0610
[56344.069945] x21: 0000000000000140 x20: ffffffc025f089a8
[56344.069948] x19: ffffffc025f08990 x18: ffffff80090896c0
[56344.069952] x17: 0000000000000400 x16: 0000000000000000
[56344.069955] x15: ffffffc015396ec0 x14: 0000000000000000
[56344.069958] x13: ffffff80089f97b8 x12: 0000000000000000
[56344.069962] x11: 0000000000000000 x10: 0000000000000000
[56344.069965] x9 : 00000000000409b2 x8 : ffffffc019802990
[56344.069968] x7 : 00000000000000a2 x6 : ffffffbf02292180
[56344.069972] x5 : 0000000000000000 x4 : 0000000000000000
[56344.069975] x3 : 0000000000000001 x2 : ffffffc0ac7a0610
[56344.069978] x1 : ffffffc0ac7a0600 x0 : 0000000000000140
[56344.069982] \x0aSP: 0xffffffc0b5fdfc70:
[56344.069983] fc70  ac7a0610 ffffffc0 ba329280 ffffffc0 ba329280 ffffffc0 00000008 00000000
[56344.069996] fc90  000000f8 00000000 089f5000 ffffff80 33855280 ffffffc0 b5fdfd30 ffffffc0
[56344.070006] fcb0  00a5e644 ffffff80 b5fdfcf0 ffffffc0 00a5e678 ffffff80 204001c5 00000000
[56344.070017] fcd0  00010001 00000000 000409b2 00000000 ffffffff 0000007f 00a5e644 ffffff80
[56344.070027] fcf0  00000008 00000000 00000000 00000000 ba329280 ffffffc0 ba329280 ffffffc0
[56344.070037] fd10  ac7a0610 ffffffc0 ac7a0600 ffffffc0 bb777900 ffffffc0 25f08140 ffffffc0
[56344.070048] fd30  b5fdfd50 ffffffc0 00a721e0 ffffff80 bc0aac60 ffffffc0 bc0aac60 ffffffc0
[56344.070059] fd50  b5fdfda0 ffffffc0 08224d58 ffffff80 0000018a 00000000 0000018a 00000000
[56344.070071] \x0aX1: 0xffffffc0ac7a0580:
[56344.070073] 0580  00000000 00000000 00000000 00000000 00000000 00000000 ba308a80 ffffffc0
[56344.070084] 05a0  00000000 00000000 00000000 00000000 00000020 00000000 ffffffff ffffffff
[56344.070094] 05c0  00000000 00000000 00000000 00000000 00000000 00000000 ac7a05d8 ffffffc0
[56344.070104] 05e0  ac7a05d8 ffffffc0 ac7a05e8 ffffffc0 ac7a05e8 ffffffc0 2d0b92f0 ffffffc0
[56344.070115] 0600  9c1b7500 ffffffc0 08224c28 ffffff80 bc0aac60 ffffffc0 bb777900 ffffffc0
[56344.070125] 0620  ba329280 ffffffc0 00ad02d0 ffffff80 00000000 00000000 00000000 00000000
[56344.070136] 0640  00020002 0000001f 00000001 00000000 ac7a0650 ffffffc0 ac7a0650 ffffffc0
[56344.070146] 0660  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070158] \x0aX2: 0xffffffc0ac7a0590:
[56344.070159] 0590  00000000 00000000 ba308a80 ffffffc0 00000000 00000000 00000000 00000000
[56344.070169] 05b0  00000020 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[56344.070179] 05d0  00000000 00000000 ac7a05d8 ffffffc0 ac7a05d8 ffffffc0 ac7a05e8 ffffffc0
[56344.070190] 05f0  ac7a05e8 ffffffc0 2d0b92f0 ffffffc0 9c1b7500 ffffffc0 08224c28 ffffff80
[56344.070200] 0610  bc0aac60 ffffffc0 bb777900 ffffffc0 ba329280 ffffffc0 00ad02d0 ffffff80
[56344.070211] 0630  00000000 00000000 00000000 00000000 00020002 0000001f 00000001 00000000
[56344.070221] 0650  ac7a0650 ffffffc0 ac7a0650 ffffffc0 00000000 00000000 00000000 00000000
[56344.070231] 0670  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070244] \x0aX8: 0xffffffc019802910:
[56344.070245] 2910  19802908 ffffffc0 00000000 00000000 00000000 00000000 84b98400 ffffffc0
[56344.070256] 2930  00000028 00000000 00000000 00000126 802c6e00 ffffffc0 19802940 ffffffc0
[56344.070266] 2950  00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070277] 2970  00000000 00000000 00000000 00000894 00000001 00000000 9bd23480 ffffffc0
[56344.070288] 2990  25f089a8 ffffffc0 25f089a8 ffffffc0 00000000 00000000 00000000 00000000
[56344.070298] 29b0  00000000 00000000 00000000 00000000 00000001 00000000 198029c8 ffffffc0
[56344.070309] 29d0  198029c8 ffffffc0 00000000 00000000 00000000 00000000 9d1b4b00 ffffffc0
[56344.070319] 29f0  00000028 00000000 00000000 000006ab b882a000 ffffffc0 25f08980 ffffffc0
[56344.070332] \x0aX15: 0xffffffc015396e40:
[56344.070333] 6e40  00000000 00000000 00000000 00000002 00000005 00000000 00558391 00000001
[56344.070344] 6e60  2e960dc0 ffffffc0 00000002 00000000 00000078 00000078 00000078 00000000
[56344.070354] 6e80  089f9678 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070365] 6ea0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070375] 6ec0  00100000 00000000 00400000 00000000 00000001 00000000 33855350 ffffffc0
[56344.070385] 6ee0  00000000 00000000 15396ee8 ffffffc0 15396ee8 ffffffc0 00000000 00000000
[56344.070395] 6f00  a040a1e8 0000333e 00aa6a90 00000000 2b4f8c80 000002f8 00aa1090 00000000
[56344.070406] 6f20  00000002 00000000 00000000 00000000 003e7c90 00000000 00000186 00000000
[56344.070418] \x0aX19: 0xffffffc025f08910:
[56344.070419] 8910  000000fc 00000000 00000000 00000000 9b8d0f80 ffffffc0 00000000 00001000
[56344.070429] 8930  00000000 00000000 00000000 00000a84 00000000 00000000 91a28c80 ffffffc0
[56344.070440] 8950  c0073540 000000e1 00000000 00000000 00000000 00000000 9d133700 ffffffc0
[56344.070450] 8970  00000028 00000000 00000000 00000a84 9bd23800 ffffffc0 19802a00 ffffffc0
[56344.070461] 8990  00020001 ffffff80 00000000 00000000 00000002 00000000 19802990 ffffffc0
[56344.070471] 89b0  19802990 ffffffc0 00000001 00000000 00000001 00000000 b8414840 ffffffc0
[56344.070482] 89d0  2c874800 ffffffc0 80674759 ffffffc0 00000000 00000000 00000000 00000000
[56344.070492] 89f0  00000000 00000003 00000000 00000000 00000001 00000000 25f08a08 ffffffc0
[56344.070503] \x0aX20: 0xffffffc025f08928:
[56344.070504] 8928  00000000 00001000 00000000 00000000 00000000 00000a84 00000000 00000000
[56344.070515] 8948  91a28c80 ffffffc0 c0073540 000000e1 00000000 00000000 00000000 00000000
[56344.070525] 8968  9d133700 ffffffc0 00000028 00000000 00000000 00000a84 9bd23800 ffffffc0
[56344.070536] 8988  19802a00 ffffffc0 00020001 ffffff80 00000000 00000000 00000002 00000000
[56344.070546] 89a8  19802990 ffffffc0 19802990 ffffffc0 00000001 00000000 00000001 00000000
[56344.070556] 89c8  b8414840 ffffffc0 2c874800 ffffffc0 80674759 ffffffc0 00000000 00000000
[56344.070566] 89e8  00000000 00000000 00000000 00000003 00000000 00000000 00000001 00000000
[56344.070576] 8a08  25f08a08 ffffffc0 25f08a08 ffffffc0 00000000 00000000 00000000 00000000
[56344.070588] \x0aX22: 0xffffffc0ac7a0590:
[56344.070589] 0590  00000000 00000000 ba308a80 ffffffc0 00000000 00000000 00000000 00000000
[56344.070599] 05b0  00000020 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[56344.070610] 05d0  00000000 00000000 ac7a05d8 ffffffc0 ac7a05d8 ffffffc0 ac7a05e8 ffffffc0
[56344.070620] 05f0  ac7a05e8 ffffffc0 2d0b92f0 ffffffc0 9c1b7500 ffffffc0 08224c28 ffffff80
[56344.070631] 0610  bc0aac60 ffffffc0 bb777900 ffffffc0 ba329280 ffffffc0 00ad02d0 ffffff80
[56344.070641] 0630  00000000 00000000 00000000 00000000 00020002 0000001f 00000001 00000000
[56344.070651] 0650  ac7a0650 ffffffc0 ac7a0650 ffffffc0 00000000 00000000 00000000 00000000
[56344.070661] 0670  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070672] \x0aX23: 0xffffffc0ba329200:
[56344.070674] 9200  499602d6 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070684] 9220  ba329228 ffffffc0 00000000 00000001 00200000 00000000 00000000 00000000
[56344.070694] 9240  00000000 00000000 ba329248 ffffffc0 ba329248 ffffffc0 ba329258 ffffffc0
[56344.070705] 9260  ba329258 ffffffc0 ba35b640 ffffffc0 ba35b640 ffffffc0 00020002 00000000
[56344.070715] 9280  000d21b6 000003e8 000003e8 00000000 00000000 00000000 00000000 00000000
[56344.070725] 92a0  08a07a80 ffffff80 baed0000 ffffffc0 ba3293e8 ffffffc0 b7106230 ffffffc0
[56344.070736] 92c0  00002440 00000000 00000001 00a00032 00000000 00000000 499602d6 00000000
[56344.070746] 92e0  20c85580 00000000 499602d6 00000000 20c85580 00000000 499602d6 00000000
[56344.070757] \x0aX24: 0xffffffc0ba329200:
[56344.070758] 9200  499602d6 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070768] 9220  ba329228 ffffffc0 00000000 00000001 00200000 00000000 00000000 00000000
[56344.070779] 9240  00000000 00000000 ba329248 ffffffc0 ba329248 ffffffc0 ba329258 ffffffc0
[56344.070789] 9260  ba329258 ffffffc0 ba35b640 ffffffc0 ba35b640 ffffffc0 00020002 00000000
[56344.070799] 9280  000d21b6 000003e8 000003e8 00000000 00000000 00000000 00000000 00000000
[56344.070810] 92a0  08a07a80 ffffff80 baed0000 ffffffc0 ba3293e8 ffffffc0 b7106230 ffffffc0
[56344.070820] 92c0  00002440 00000000 00000001 00a00032 00000000 00000000 499602d6 00000000
[56344.070830] 92e0  20c85580 00000000 499602d6 00000000 20c85580 00000000 499602d6 00000000
[56344.070842] \x0aX28: 0xffffffc033855200:
[56344.070843] 5200  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070853] 5220  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070863] 5240  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070873] 5260  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[56344.070883] 5280  00400014 00000000 ffffffff ffffffff 91b5e000 4d5a0000 00000001 00000000
[56344.070893] 52a0  00000000 00000000 b5fdc000 ffffffc0 00000004 00400104 00000000 00000000
[56344.070904] 52c0  00000000 00000000 00000001 00000002 00000069 00000000 00558412 00000001
[56344.070914] 52e0  91840000 ffffffc0 00000002 00000001 00000078 00000078 00000078 00000000
[56344.070925] \x0aX29: 0xffffffc0b5fdfcb0:
[56344.070926] fcb0  00a5e644 ffffff80 b5fdfcf0 ffffffc0 00a5e678 ffffff80 204001c5 00000000
[56344.070936] fcd0  00010001 00000000 000409b2 00000000 ffffffff 0000007f 00a5e644 ffffff80
[56344.070946] fcf0  00000008 00000000 00000000 00000000 ba329280 ffffffc0 ba329280 ffffffc0
[56344.070957] fd10  ac7a0610 ffffffc0 ac7a0600 ffffffc0 bb777900 ffffffc0 25f08140 ffffffc0
[56344.070967] fd30  b5fdfd50 ffffffc0 00a721e0 ffffff80 bc0aac60 ffffffc0 bc0aac60 ffffffc0
[56344.070977] fd50  b5fdfda0 ffffffc0 08224d58 ffffff80 0000018a 00000000 0000018a 00000000
[56344.070988] fd70  00000011 00000000 9c1b7500 ffffffc0 090a1598 ffffff80 33855a64 ffffffc0
[56344.070998] fd90  33855280 ffffffc0 08c0c1f0 ffffff80 b5fdfdb0 ffffffc0 08224c34 ffffff80
[56344.071009]
[56344.071011] ---[ end trace 826d119763317b4c ]---
[56344.071013] Call trace:
[56344.071017] Exception stack(0xffffffc0b5fdfbc0 to 0xffffffc0b5fdfcf0)
[56344.071021] fbc0: 0000000000000140 ffffffc0ac7a0600 ffffffc0ac7a0610 0000000000000001
[56344.071025] fbe0: 0000000000000000 0000000000000000 ffffffbf02292180 00000000000000a2
[56344.071028] fc00: ffffffc019802990 00000000000409b2 0000000000000000 0000000000000000
[56344.071031] fc20: 0000000000000000 ffffff80089f97b8 0000000000000000 ffffffc015396ec0
[56344.071035] fc40: 0000000000000000 0000000000000400 ffffff80090896c0 ffffffc025f08990
[56344.071038] fc60: ffffffc025f089a8 0000000000000140 ffffffc0ac7a0610 ffffffc0ba329280
[56344.071042] fc80: ffffffc0ba329280 0000000000000008 00000000000000f8 ffffff80089f5000
[56344.071045] fca0: ffffffc033855280 ffffffc0b5fdfd30 ffffff8000a5e644 ffffffc0b5fdfcf0
[56344.071049] fcc0: ffffff8000a5e678 00000000204001c5 0000000000010001 00000000000409b2
[56344.071051] fce0: 0000007fffffffff ffffff8000a5e644
[56344.071128] [<000000007d77c18a>] pvr_counting_fence_timeline_force_complete+0x5c/0xd8 [pvrsrvkm]
[56344.071185] [<00000000ecb42661>] pvr_sync_close+0x1c/0x48 [pvrsrvkm]
[56344.071193] [<000000003a6f9b72>] __fput+0xd0/0x1cc
[56344.071196] [<00000000d906f8ee>] ____fput+0xc/0x14
[56344.071202] [<00000000dd7744b7>] task_work_run+0x88/0x11c
[56344.071208] [<000000005aa83f2c>] do_exit+0x270/0x82c
[56344.071212] [<000000003ed979d1>] SyS_exit_group+0x0/0x10
[56344.071215] [<00000000fc269a59>] __wake_up_parent+0x0/0x28
[56344.071220] [<00000000cfca539f>] el0_svc_naked+0x34/0x38
[56344.587029] logd: logdr: UID=10046 GID=10046 PID=1473 n tail=0 logMask=4 pid=0 start=0ns timeout=0ns
[56344.652364] logd: logdr: UID=10046 GID=10046 PID=1473 n tail=0 logMask=4 pid=0 start=0ns timeout=0ns
BFX-UA300:/ #
kernel_panic.txt (13,243 bytes)   

(ALTech) Sangmin Choi

2022-11-24 08:45

developer   ~0011293

Hello, Jacky,

Could you please assign an engineer for this issue?

Thank you.

(SW) Jacky Chiang

2022-11-25 12:00

manager   ~0011316

Hi Sangmin,

We have Dean to handle this request.

Thanks,
Jacky

(SW) Dean Chiang

2022-11-30 09:36

developer   ~0011337

Hi Sangmin,

We found that this message is not a kernel panic but a warning message
It is printed by the following code

syna-release/linux_4_9_q/drivers/soc/berlin/modules/rogue/src/pvr_counting_timeline.c
188 /* This is just a safety measurement. Normally we should never see any
189 * unsignaled sw fences when we come here. Warn if we still do! */
190 WARN_ON(!list_empty(&timeline->active_fences));

We also tried v19.524.15 which also prints this warning message.

(ALTech) Sangmin Choi

2022-12-07 09:30

developer   ~0011414

Hi, Dean,

Could you please update current status?

Thank you.

(SW) Dean Chiang

2022-12-07 14:49

developer   ~0011423

Hi Sangmin,

Is there a problem with the screencap function?
Because I can use screencap normally.
I think it's just a warning message and has been printed since the original version.
We have not modified the related code.

Thank you.
Dean

(ALTech) Sangmin Choi

2022-12-07 15:09

developer   ~0011425

Hi, Dean,

If this is a just warning message, is it possible to remove it?

(SW) Dean Chiang

2022-12-07 15:53

developer   ~0011427

Hi Sangmin,

Yes. It can be removed.
Do you want to remove it?

Thank you.
Dean

(ALTech) Sangmin Choi

2022-12-07 16:15

developer   ~0011428

Hi, Dean,

Are you going to remove the below line?

    /* This is just a safety measurement. Normally we should never see any
     * unsignaled sw fences when we come here. Warn if we still do! */
    WARN_ON(!list_empty(&timeline->active_fences));

I'm worried that there is any other side effect in case of removing warning messages.
Could you please let me know why this warning messages are printed?

Thank you.

(SW) Dean Chiang

2022-12-12 09:53

developer   ~0011457

Hi Sangmin,

The Code is from Synaptics and seems to the synchronization mechanism.
Maybe we can confirm with Synaptics.

Thank you.
Dean

(ALTech) Sangmin Choi

2022-12-12 10:05

developer   ~0011459

Hi, Dean,

Please ask to Synaptics.

Thank you.

(ALTech) Sangmin Choi

2023-04-11 15:25

developer   ~0012810

I got the message from Synaptics as follows,

The meaning is "When PVR(graphic driver) close the Fence(SYNC), resource doesn't exist."
As now, this is not critical bug.

Close this issue.

Issue History

Date Modified Username Field Change
2022-11-24 08:42 (ALTech) Sangmin Choi New Issue
2022-11-24 08:42 (ALTech) Sangmin Choi Status new => assigned
2022-11-24 08:42 (ALTech) Sangmin Choi Assigned To => (SW) Jacky Chiang
2022-11-24 08:42 (ALTech) Sangmin Choi File Added: kernel_panic.txt
2022-11-24 08:45 (ALTech) Sangmin Choi Note Added: 0011293
2022-11-25 12:00 (SW) Jacky Chiang Assigned To (SW) Jacky Chiang => (SW) Dean Chiang
2022-11-25 12:00 (SW) Jacky Chiang Note Added: 0011316
2022-11-30 09:36 (SW) Dean Chiang Note Added: 0011337
2022-12-07 09:30 (ALTech) Sangmin Choi Note Added: 0011414
2022-12-07 14:49 (SW) Dean Chiang Note Added: 0011423
2022-12-07 15:09 (ALTech) Sangmin Choi Note Added: 0011425
2022-12-07 15:53 (SW) Dean Chiang Note Added: 0011427
2022-12-07 16:15 (ALTech) Sangmin Choi Note Added: 0011428
2022-12-12 09:53 (SW) Dean Chiang Note Added: 0011457
2022-12-12 10:05 (ALTech) Sangmin Choi Note Added: 0011459
2022-12-14 14:13 (ALTech) Sangmin Choi Issue Monitored: (ALTech) Wooshin Kang
2023-04-11 15:25 (ALTech) Sangmin Choi Note Added: 0012810
2023-04-11 15:25 (ALTech) Sangmin Choi Status assigned => closed
2023-04-11 15:25 (ALTech) Sangmin Choi Resolution open => fixed